package com.badminton.HubSys.domain;

import com.badminton.common.annotation.Excel;
import com.badminton.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.StringJoiner;

public class EquipmentHub extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 装备ID */
    private Long equipmentid;

    /** 类别ID */
    private Long categoryid;

    /** 装备品牌 */
    @Excel(name = "装备品牌")
    private String brand;

    /** 装备型号 */
    @Excel(name = "装备型号")
    private String model;

    /** 装备规格 */
    @Excel(name = "装备规格")
    private String specifications;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stock;

    /** 图片 */
    @Excel(name = "图片")
    private String imageurl;

    /** 装备描述 */
    @Excel(name = "装备描述")
    private String description;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdat;

    /** 装备信息更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "装备信息更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedat;

    public Long getEquipmentid() {
        return equipmentid;
    }

    public void setEquipmentid(Long equipmentid) {
        this.equipmentid = equipmentid;
    }

    public Long getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Long categoryid) {
        this.categoryid = categoryid;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreatedat() {
        return createdat;
    }

    public void setCreatedat(Date createdat) {
        this.createdat = createdat;
    }

    public Date getUpdatedat() {
        return updatedat;
    }

    public void setUpdatedat(Date updatedat) {
        this.updatedat = updatedat;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", EquipmentHub.class.getSimpleName() + "[", "]")
                .add("equipmentid=" + equipmentid)
                .add("categoryid=" + categoryid)
                .add("brand='" + brand + "'")
                .add("model='" + model + "'")
                .add("specifications='" + specifications + "'")
                .add("price=" + price)
                .add("stock=" + stock)
                .add("imageurl='" + imageurl + "'")
                .add("description='" + description + "'")
                .add("createdat=" + createdat)
                .add("updatedat=" + updatedat)
                .toString();
    }
}
